import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import getters from './getters'

Vue.use(Vuex)

// 应用初始状态
const state = {
    address: '1234',
    id: '',
    isShowLoad:1,
    isShow:false,
    process:0,
    catNum:0,
    WJinfile:0,
    todo:0
};

// 创建 store 实例
export default new Vuex.Store({
    actions,
    getters,
    state,
    mutations
})